| От | Herouth Maoz |
|---|---|
| Тема | Java threads and the JDBC driver |
| Дата | |
| Msg-id | l03110704b222c3e19580@[147.233.159.109] обсуждение исходный текст |
| Ответы |
Re: [INTERFACES] Java threads and the JDBC driver
|
| Список | pgsql-interfaces |
As I understand it, the JDBC driver is not thread safe. I am trying to figure out how much synchronization I need. Is it safe to use separate ResultSets that originate from the same Connection object concurrently? That is, lock the connection object, create and perform the query into a new ResultSet, unlock the connection, and proceed to use the ResultSet? If I do that, other threads may be issuing queries while I'm still looping on the ResultSet. It's supposed to be OK. But is it? Herouth -- Herouth Maoz, Internet developer. Open University of Israel - Telem project http://telem.openu.ac.il/~herutma
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера